<%--
  Created by IntelliJ IDEA.
  User: lenovo
  Date: 2018/5/3
  Time: 14:33
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=utf-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>

<html>
<head>
    <title>Title</title>
</head>
<body>
<div class="pageHeader">
    <form rel="pageForm" onsubmit="return navTabSearch(this);" action="<c:url value='/danger/ptcsbz/jdlist'/>" method="post">

    </form>
</div>
<div class="pageContent">
    <table class="table" width="100%" layoutH="86">
        <thead>
        <tr>
            <th width="40"  align="center">序号</th>
            <th width="100"  align="center">区</th>
            <th width="100" align="center">街道</th>
            <th width="100" align="center">社区</th>
            <th width="100" align="center">灭火器</th>
            <th width="100" align="center">应急照明灯</th>
            <th width="100" align="center">简易喷淋</th>
            <th width="100" align="center">独立烟感报警器</th>
            <th width="100"  align="center">电气火灾监控系统</th>
            <th width="100"  align="center">可燃气体紧急切断装置</th>
            <th width="100"  align="center">电动车设施个数</th>
            <th width="100"  align="center">电动车设施面积</th>
            <th width="100"  align="center">电动车停放数量</th>
            <th width="100"  align="center">用户</th>
            <th width="120"  align="center">创建时间</th>
            <th width="180"  align="center">状态</th>
            <th width="300"  align="center">操作</th>
        </tr>
        </thead>
        <tbody>
        <c:forEach items="${pager.list}" var="list" varStatus="state" >
            <tr>
                <td>${state.count+(pager.pageNum-1)*pager.numPerPage}</td>
                <td>${list.fjid}</td>
                <td>${list.pcsid}</td>
                <td>${list.sqid}</td>
                <td>${list.mhq}</td>
                <td>${list.yjzmd}</td>
                <td>${list.jypl}</td>
                <td>${list.dlygbjq}</td>
                <td>${list.dqhzjkxt}</td>
                <td>${list.krqtjjqdzz}</td>
                <td>${list.ddcgs}</td>
                <td>${list.ddcmj}</td>
                <td>${list.ddctfl}</td>
                <td>${list.userid}</td>
                <td><fmt:formatDate value="${list.createtime}" pattern="yyyy-MM-dd"/></td>
                <td>
                    <c:choose>
                        <c:when test="${list.isconfirm=='0'}">未处理</c:when>
                        <c:when test="${list.isconfirm=='1'}">街道已审核</c:when>
                        <c:when test="${list.isconfirm=='2'}">街道已退回</c:when>
                        <c:when test="${list.isconfirm=='3'}">区审核已退回</c:when>
                        <c:when test="${list.isconfirm=='4'}">区审核已确认</c:when>
                    </c:choose>
                </td>
                <td>
                    &nbsp;
                    <a href="<c:url value='/danger/ptcsbz/detail'/>?id=${list.id}&type=2" target="dialog" mask="true" resizable="false"
                       width="600" height="600" title="查看详情" rel="page_info_detail">查看详情&nbsp;</a>
                    <c:if test="${list.isconfirm=='0'}">
                    <a href="<c:url value='/danger/ptcsbz/qrth'/>?ptcsbzid=${list.id}&isconfirm=1" title="确认审核吗?"
                        target="ajaxDel" callback="callbackcz">确认审核&nbsp;</a>
                    <a href="<c:url value='/danger/ptcsbz/thpage'/>?ptcsbzid=${list.id}&isconfirm=2" width="400" height="200"
                        target="dialog" >退回&nbsp;</a>
                    </c:if>
                </td>
            </tr>
        </c:forEach>
        </tbody>
    </table>
    <div class="panelBar">
        <div class="pages">
            <span>显示</span>
            <select class="combox" name="numPerPage" onchange="dialogPageBreak({numPerPage:this.value})">
                <option value="20" <c:if test="${pager.numPerPage ==20}" >selected="selected"</c:if>>20</option>
                <option value="50" <c:if test="${pager.numPerPage ==50}" >selected="selected"</c:if>>50</option>
                <option value="100" <c:if test="${pager.numPerPage ==100}" >selected="selected"</c:if>>100</option>
                <option value="200" <c:if test="${pager.numPerPage ==200}" >selected="selected"</c:if>>200</option>
            </select>
            <span>条，共${pager.total}条</span>
        </div>
        <div class="pagination" targetType="dialog" totalCount="${pager.total}" numPerPage="${pager.numPerPage}" pageNumShown="10" currentPage="${pager.pageNum}"></div>
    </div>
    <form id="pagerForm" method="post" action="<c:url value='/danger/ptcsbz/ptcsbztj/detail/1'/>">
        <input type="hidden" name="pageNum" value="${pager.pageNum}"/>
        <input type="hidden" name="numPerPage" value="${pager.numPerPage}"/>
        <input type="hidden" name="orderField" value="${query.orderField}"/>
        <input type="hidden" name="orderDirection" value="${query.orderDirection}"/>
        <input type="hidden" name="start" value="<fmt:formatDate value="${query.start}" pattern="yyyy-MM-dd"/>"/>
        <input type="hidden" name="end" value="<fmt:formatDate value="${query.end}" pattern="yyyy-MM-dd"/>"/>
        <input type="hidden" name="fjid" id="fjid" value="${query.data.fjid}"/>
        <input type="hidden" name="pcsid" id="pcsid" value="${query.data.pcsid}"/>
        <input type="hidden" name="sqid" id="sqid" value="${query.data.sqid}"/>
        <input type="hidden" name="column" value="${column}"/>
    </form>
</div>
<script type="text/javascript">
    function callbackcz(resp){
        if (resp && resp.succ) {
            alertMsg.info(resp.msg + "!");
            //$.pdialog.closeCurrent();
            navTab.reloadFlag('page_ptcsbzjd_index')
        } else {
            alertMsg.info(resp.msg + "!");
        }
    }
</script>
</body>
</html>
